{breadcrumbs}<a href="{$GLOBALS.site_url}/stat-pages/">Static Content</a> &#187; Edit Static Content{/breadcrumbs}
<h1><img src="{image}/icons/notepencil32.png" border="0" alt="" class="titleicon"/>Edit Static Content</h1>
{module name="user_pages" function="register_page_link" pageInfo=$pageInfo caption="Content"}
{$error}
<form method="post">
	<input type="hidden" name="action" value="change" />
    <input type="hidden" id="submit" name="submit" value="save_content" />
	<input type="hidden" name="page_sid" value={$page_sid} />
	<table width="100%" id="editStaticContent">
		<tr>
			<td width="15%">ID</td>
			<td><input type="text" name="page_id" value="{$page.id}" class="text" /></td>
		</tr>
		<tr>
			<td>Static content name</td>
			<td><input type="text" name="name" value="{$page.name}" class="text" /></td>
		</tr>
		<tr>
			<td>Language</td>
			<td>
				<select name="lang">
					{foreach from=$languages item=language}
						<option value="{$language.id}"{if $language.id == $page.lang} selected="selected"{/if}>{$language.caption}</option>
					{/foreach}
				</select>
			</td>
		</tr>
		<tr>
			<td colspan="2">Static content:</td>
		</tr>
		<tr>
			<td colspan="2">{WYSIWYGEditor name="content" width="99%" height="700" value=$page_content conf="BasicAdmin"}</td>
		</tr>
		<tr id="clearTable">
			<td colspan="2">
                <div class="floatRight">
                    <input type="submit" id="apply" value="Apply" class="grayButton"/>
                    <input type="submit" value="Save" class="greenButton" />
                </div>
            </td>
		</tr>
	</table>
</form>

{literal}
	<script>
        $('#apply').click(
            function(){
                $('#submit').attr('value', 'apply_content');
            }
        );
    </script>
{/literal}